@echo off
REM ------------------------------------------------------------------
REM Author : Elm, Based on Resp@wner (L2j)
REM Last modified : 06.01.2011
REM ------------------------------------------------------------------
set pomxmlLSPath=..\LoginServer
set pomxmlGSPath=..\GameServer
set pomxmlCMPath=..\Commons
set pomxmlCSPath=..\ChatServer
set pomxmlDPPath=..\DataPack
echo The path of the LoginServer project is %pomxmlLSPath%
echo The path of the GameServer project is %pomxmlGSPath%
echo The path of the Commons project is %pomxmlCMPath%
echo The path of the ChatServer project is %pomxmlCSPath%
echo The path of the DataPack project is %pomxmlDPPath%
echo     
echo Clean Process [DataPack\GameServer\LoginServer\ChatServer]:
echo    
echo Moving to folder (%pomxmlDPPath%)
cd %pomxmlDPPath%
call mvn clean
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn clean
echo Moving to folder (%pomxmlLSPath%)
cd %pomxmlLSPath%
call mvn clean
echo Moving to folder (%pomxmlCSPath%)
cd %pomxmlCSPath%
call mvn clean
echo         
echo Compile Process [Commons\GameServer\DataPack\LoginServer\ChatServer]:
echo       
echo Moving to folder (%pomxmlCMPath%)
cd %pomxmlCMPath%
call mvn install
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn install
echo     
echo Build Process [DataPack\GameServer\LoginServer\ChatServer]:
echo    
echo Moving to folder (%pomxmlDPPath%)
cd %pomxmlDPPath%
call mvn assembly:assembly
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn assembly:assembly
echo Moving to folder (%pomxmlLSPath%)
cd %pomxmlLSPath%
call mvn assembly:assembly
echo Moving to folder (%pomxmlCSPath%)
cd %pomxmlCSPath%
call mvn assembly:assembly